package com.yequan.work;

/**
 * @author yequan
 * @date 2021/04/10 18:48
 **/
public abstract class BaseDetail {

    public void execute(String name) {
        System.out.println(name);
        setMyInfo();
    }

    private void setMyInfo() {
        System.out.println("setMyInfo: " + getIsDriver());
    }

    protected abstract boolean getIsDriver();

}
